package soso.Dao;

import soso.Inter.TaoCan;

/**
 * @author ：lzc
 * @date ：Created in 2021/8/20 0020 14:42
 * @description：
 */
//网虫套餐
public class NetPackage extends TaoCan {
    int Monfee = 68;

    @Override
    public int getMonfee() {
        return Monfee;
    }

    @Override
    public void setMonfee(int monfee) {
        Monfee = monfee;
    }

    int flow = 3072;   //流量
    String name = "网虫套餐68元/月";
    int calltime = 0;   //通话时间
    int messagesnum = 0; //短信数量

    public int getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCalltime() {
        return calltime;
    }

    public void setCalltime(int calltime) {
        this.calltime = calltime;
    }

    public int getMessagesnum() {
        return messagesnum;
    }

    public void setMessagesnum(int messagesnum) {
        this.messagesnum = messagesnum;
    }

    @Override
    public String toString() {
        return name;
    }

    public void Taocanyuelian() {
        System.out.println("当前套餐为:" + name);
        System.out.println("当前套餐无可用短信");
        System.out.println("当前套餐无可用通话时长");
        if (flow % 1024 == 0) {
            System.out.println("当前套餐可用流量为:" + flow / 1024 + "GB");
        } else {
            System.out.println("当前套餐可用流量为:" + flow + "MB");
        }
    }
}
